package com.zb_study.Homework04;

public class homework04 {
    public static void main(String[] args) {
        Worker worker = new Worker("小明", 5000);
        worker.printSal();
        Teacher teacher = new Teacher("jack", 10000, 100, 100);
        teacher.printSal();
        Scientist scientist = new Scientist("smith", 20000, 80000);
        scientist.printSal();
    }
}
